﻿using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class SphereSensor : MonoBehaviour
{
    public float radius;
    public LayerMask Layer;
    public SoldierAI[] neighbours = new SoldierAI[8];



    //private void Update()
    //{
    //    Collider[] neighbourColliders = Physics.OverlapSphere(transform.position, radius, Layer);
    //    for (int i = 0; i < neighbours.Length && i < neighbourColliders.Length; i++)
    //    {
    //        neighbours[i] = neighbourColliders[i].GetComponent<SoldierAI>();
    //    }
    //}
}
